import { locations } from "../../../../gpu/locations";
export const AmbientLight_def = /*wgsl*/ `
#if ~{def.ambientLight}
@group(${locations.ambientLight[0]}) @binding(${locations.ambientLight[1]}) var<uniform> ambientLight : AmbientLight;
struct AmbientLight {
    color:vec3<f32>,
    intensity:f32
}
fn calc_ambientLight(ambientLight: AmbientLight, materialColor: vec3<f32>)->vec3<f32>{
    let out:vec3<f32>=ambientLight.color*ambientLight.intensity*materialColor;
    return out;
  }
#endif`